package file.day9_24.day08;

public class Point {
    private int a,b;

    public Point(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

//    public boolean equals(Object obj){
//        if (this == obj)return true;
//        if (obj == null || this.getClass() != obj.getClass())return false;
//        Point point = (Point) obj;
//        return a == point.a && b == point.b;
//    }

    public String toString(){
        return "(" + getA() +","+ getB() +")";
    }
}
